<div class="focus" ui-view="container">
    <ol class="breadcrumb" style="font-size: 12px">
        <li>广告中心</li>
        <li>作弊管理</li>
        <li>关注对象</li>
    </ol>
    <uib-tabset active="search.mode" >
        <uib-tab index="'ip'" heading="过滤IP地址"   ng-click="filterClick('ip')"></uib-tab>
        <uib-tab index="'cuid'" heading="过滤设备ID"   ng-click="filterClick('cuid')"></uib-tab>
        <input ims-select-range-time="rangeDate" type="text" style="padding: 7px;">
        <div style="float: right">
            <select ng-model="typeObj" class="select-style mt-2" ng-options="type.value for type in types" ng-change="typeChange(typeObj)" ng-init="typeObj=typeObj.type?typeObj:types[0]">
            </select>
        </div>
        <div class="row panel-row bg-white">
            <div class="search-operation pull-left" style="margin-left: 20px;">
                <a ng-click="disAllowedSelect()" class="bg-style"  title="封禁">
                    封禁
                </a>
                <a ng-click="unFocusSelect()" class="bg-style" title="取消关注">
                    取消关注
                </a>
            </div>
        </div>
    </uib-tabset>

    <div class="panel">
        <div class="table-responsive">
            <table class="table table-bordered table-hover">
                <thead>
                <tr>
                    <th><input type="checkbox" id="allCheck" class="magic-checkbox" ng-model="allChecked" ng-change="allCheckedClick(allChecked)">
                        <label for="allCheck" ></label></th>
                    <th ng-if="search.mode!='ip'">设备ID</th>
                    <th ng-if="search.mode=='ip'">IP</th>
                    <th>关注来源</th>
                    <th>关注时间</th>
                    <th>操作</th>

                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="item in list">

                    <td><input type="checkbox" id="{{$index}}" class="magic-checkbox" ng-model="item.checked">
                       <label for="{{$index}}"></label></td>
                    <td ng-if="search.mode!='ip'">{{item.cuid}}</td>
                    <td ng-if="search.mode=='ip'">{{item.ip}}</td>

                    <td>{{table[item.type]}}</td>
                    <td>{{item.cTime}}</td>

                    <td>
                       <a ng-click="unFocus(item.id)" class="time-out">取消关注</a>
                       <a ng-click="disAllowed(item)" class="time-out">封禁</a>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
    <div class="panel-footer">
        <s-pagination conf="paginationConf"></s-pagination>
    </div>

</div>
